module.exports = {
  productionSourceMap: false, //打包后是否需要.map文件
  css: {
    loaderOptions: {
      sass: {
        data: `@import "@/styles/index.scss";`,
      },
    },
  },
  devServer: {
    port: 8103,
    proxy: {
      '/socket.io': {
        target: 'http://192.168.1.120:5000/', // target host
        changeOrigin: true, // needed for virtual hosted sites
        logLevel: 'debug',
      },
      '/sockjs-node': {
        target: 'http://192.168.1.120:5000',
        ws: false,
        changeOrigin: true,
      },
    },
  },
}
